local hx__longbao = fk.CreateSkill{
    name = "hx__longbao",

    tags = {},
}

hx__longbao:addEffect(fk.PreHpLost,{
    can_trigger = function (self, event, target, player, data)
        return player:hasSkill(hx__longbao.name) and target and target ~= player 
    end,
    on_cost = function (self, event, target, player, data)
        return player.room:askToSkillInvoke(player,{skill_name = hx__longbao.name , prompt = "#hx__longbao__evoke::"..target.id})
    end,
    on_use = function (self, event, target, player, data)
        player.room:damage{
            to = target,
            from = player,
            damage = 2,
            skillName = hx__longbao.name
        }
        data.prevented = true
    end,
})

return hx__longbao